package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.SysPost;
import com.yugao.fintech.draper.admin.param.PostDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PostConvert {

	PostConvert INSTANCE = Mappers.getMapper(PostConvert.class);

	SysPost convert(PostDTO postDTO);

	PostDTO convert(SysPost sysPost);

	List<PostDTO> convert(List<SysPost> sysPostList);

	Page<PostDTO> convert(Page<SysPost> postDOList);

}
